using System;
using Comdiv.Extensions;
using Comdiv.Model;
using Comdiv.Model.Interfaces;
using Comdiv.Logging;
using Comdiv.Application;
using Comdiv.Persistence;
using Comdiv.Inversion;
using Comdiv.Security.Acl;
using Comdiv.Conversations;
using Comdiv.IO;
using Comdiv.Security;
using System.Linq;

namespace Comdiv.Dbfs{
    public class FileContent : IFileContent {
        public virtual int Id { get; set; }
        public virtual int Revision { get;protected set; }
        public virtual byte[] Data { get; set; }
        public virtual int SrsId { get; set; }
        public virtual bool IsPreviousLoaded
        {
            get { return null != _previous; }
        }

        private IFileContent _previous;

        public virtual IFileContent Previous{
            get { return _previous; }
            set { _previous = value; }
        }
    }
}